package com.huawei.appgallery.datastorage.database.impl.process;

import android.content.ContentValues;
import android.database.Cursor;
import java.lang.reflect.Field;
import o.blw;
import o.bmc;
import o.bmg;

public final class FloatProcess implements bmc<Float> {
    public /* synthetic */ void ˋ(ContentValues contentValues, String str, Object obj) {
        ˎ(contentValues, str, (Float) obj);
    }

    public String ˊ() {
        return "REAL";
    }

    public void ˎ(ContentValues contentValues, String str, Float f) {
        contentValues.put(str, Float.valueOf(ˋ(f)));
    }

    private float ˋ(Float f) {
        if (f != null) {
            return f.floatValue();
        }
        return 0.0f;
    }

    public void ˎ(blw o_blw, Field field, Cursor cursor, int i) {
        try {
            field.set(o_blw, Float.valueOf(cursor.getFloat(i)));
        } catch (IllegalAccessException e) {
            bmg.ˊ.ˏ("FloatProcess", "put value failed:IllegalAccessException:" + o_blw.getClass().getSimpleName());
        } catch (Exception e2) {
            bmg.ˊ.ˏ("FloatProcess", "put value failed:Exception:" + o_blw.getClass().getSimpleName());
        }
    }
}
